(forward_to_next_line_start): Fix a condition that
authorGerd Moellmann <gerd@gnu.org>
Sat, 3 Aug 2002 12:44:18 +0000 (12:44 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sat, 3 Aug 2002 12:44:18 +0000 (12:44 +0000)
lead to a newline being skipped.

src/xdisp.c

index 687c0eb94406476749a746590b7e352e0a08a723..783a1b9423f616dcce053b4e6de3343be7c38939 100644 (file)
@@ -3876,7 +3876,7 @@ forward_to_next_line_start (it, skipped_p)
 
   /* If we didn't find a newline near enough, see if we can use a
      short-cut.  */
-  if (n == MAX_NEWLINE_DISTANCE)
+  if (!newline_found_p)
     {
       int start = IT_CHARPOS (*it);
       int limit = find_next_newline_no_quit (start, 1);